# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=exempi
pkgver=2.6.5
pkgrel=1
pkgdesc="Library to parse XMP metadata"
url="https://wiki.freedesktop.org/libopenraw/Exempi/"
# s390x fails to build
arch="all !s390x"
license="BSD-3-Clause"
makedepends="
	boost-dev
	expat-dev
	zlib-dev
	"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="https://libopenraw.freedesktop.org/download/exempi-$pkgver.tar.xz"

# secfixes:
#   2.5.1-r0:
#     - CVE-2018-12648

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
71a0830c7a547bd7304e38f307a17a5ca70d6d22bb94db93f7e6c0903d1a1a1e211487cd530ec81fb058d0b45224018d23aab9a9394b6cfa025c50f0d77b5002  exempi-2.6.5.tar.xz
"
